#include "common.utils.hpp"

void test_fonts()
{

}

void _deprecated_test()
{
    SDL_Init(INIT_ALL);
    TTF_Init();

//    SDL_Window *window = SDL_CreateWindow(CREATEWINDOW);
//
//    SDL_Renderer *renderer = SDL_CreateRenderer(CREATERENDERER);

    // TODO(etcix): make it more simple
    MOSTCOMMWINDOWANDRENDERER//  INFO: it works like the above
    MOSTCOMMSUFANDTEXT_MAKE_NULL

    TTF_Font *font_title = TTF_OpenFont("Resources/Fonts/lazy.ttf",64);
    SDL_Rect rect_title = {DEFAUTE_RECT};
    SDL_Color color_title= {COLORSET(20,20,20,20)};
    SDL_Surface *surface_title = TTF_RenderText_Blended(font_title, "athing", color_title,1,2,3);



    // it works
    surface = TTF_RenderText_Blended(font_title, "what",color_title,1,2,3);

    SDL_Rect rect_backgroud = {.x=0,.y=0};


    DELAY(10000);
    // TODO(etcix):
    TTF_Quit();

    MOSTCOMMSUFANDTEXT_FREE
    MOSTCOMMWINDOWANDRENDER_FREE//
}